﻿<ResourceDictionary 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
  xmlns:design="clr-namespace:System.Windows.Controls.WpfPropertyGrid.Design">
        
  <Style TargetType="{x:Type design:AlphabeticalLayout}">
    <Setter Property="Background" Value="{Binding Background}"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type design:AlphabeticalLayout}">
          <ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled">
            <design:PropertyItemsLayout Grid.IsSharedSizeScope="True" ItemsSource="{Binding Properties}" Background="{Binding ItemsBackground}"/>
          </ScrollViewer>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  
</ResourceDictionary>